<?php
include_once('blocks/navigator.php');
$view_post .= '<div id="cohoi_nghenghiep"><table width="690" border="0" cellpadding="0" cellspacing="0"><tr style="background-color:#585858; color:#FFF; font-weight:bold"><td width="20">STT</td><td width="260">KHÓA HỌC</td><td width="130">THỜI GIAN HỌC</td><td width="100">NGÀY KHAI GIẢNG</td><td>&nbsp;</td></tr>';
$i=0;
$chnn = $tc->cohoi_nghenghiep();
while($row_chnn = mysql_fetch_array($chnn)){ $i++;
	$date_khaigiang = date('Y-m-d',strtotime($row_chnn['date_update']));
	$date_hientai = date('Y-m-d');
	if($date_khaigiang >= $date_hientai) $view_post .= '<tr class="cohoi"><td>'.$i.'</td><td>'.$row_chnn['name'].'</td><td>'.$row_chnn['thoigianhoc'].'</td><td>'.date('d/m/Y',strtotime($row_chnn['date_update'])).'</td><td><a href="'.$row_chnn['khoahoc'].'" title="'.$row_chnn['name'].'">Xem chi tiết</a></td></tr>';
}
$view_post .= '</table><div style="line-height:22px; padding-top:30px">'.$row_config['contact'].'</div></div><script type="text/javascript">$(document).ready(function(){$(".cohoi:odd").css("background-color","#EBEBEB");});</script><div style="clear:both; height:300px"></div>';
mysql_free_result($chnn);
?>